SUMMARY = "initramfs"
DESCRIPTION = "The set of packages required by pee minimal initramfs"
PR = "r1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup

# live should use this VIRTUAL-RUNTIME as we don't want systemd:
# Notice: we need busybox-inittab to setup in RDEPENDS
DISTRO_FEATURES_BACKFILL_CONSIDERED:append := " systemd"
VIRTUAL-RUNTIME_dev_manager := "busybox-mdev"
VIRTUAL-RUNTIME_init_manager := "busybox"
VIRTUAL-RUNTIME_initscripts := "initscripts"
VIRTUAL-RUNTIME_keymaps := "keymaps"
VIRTUAL-RUNTIME_login_manager := "busybox"

EFI_PROVIDER ??= "grub-efi"

SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', '${VIRTUAL-RUNTIME_base-utils-hwclock}', '', d)} \
                    modutils-initscripts \
                    init-ifupdown \ 
                    ${VIRTUAL-RUNTIME_initscripts} \
                   "

RDEPENDS:${PN} = "\
    ${VIRTUAL-RUNTIME_init_manager} \
    ${VIRTUAL-RUNTIME_dev_manager} \
    ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \
    openssl \
    json-c \
    license-tools \
    e2fsprogs-resize2fs \
    lvm2 \
    cryptsetup \
    "

